from django.conf.urls import url
from django.contrib import admin
from .views import *
from django.contrib.auth.decorators import login_required
urlpatterns = [
    url(r'^register', RegisterView.as_view(), name='register'),
    url(r'^login', LoginView.as_view(), name='login'),
    url(r'^logout', LogoutView.as_view(), name='logout'),
    url(r"^email_active/(?P<userSign>.*)$", EmailActiveView.as_view(), name='email_active'),

    url(r'^address$', login_required(UserAsddressView.as_view()), name='address'),
    url(r'^order$', login_required(UserOrderView.as_view()), name='order'),
    url(r'^defaultaddrchange$', login_required(UserDefaultAddrChange.as_view()), name='defaultaddrchange'),
    url(r'^', login_required(UserInfoView.as_view()), name='userinfo'),


]









